package com.biz.user.convert;

import com.biz.user.entity.po.*;
import com.biz.user.entity.req.*;
import org.mapstruct.*;
import org.mapstruct.factory.*;

/**
 * @Description
 * @Author liuxi
 * @Date 2024/4/20
 **/
@Mapper
// @Mapper(uses = TypeConversionWorker.class)
public interface SysUserConvert {

    SysUserConvert INSTANCE = Mappers.getMapper(SysUserConvert.class);

    /* @Mapping(source = "age", target = "age1")
    *   注解映射
    * */
    // @Mapping(target = "storyData", source = "storyData", qualifiedByName = "stringToJson")
    SysUser convertReqToSysUser(SysUserReq sysUserReq);

}
